#pragma strict

static var instance:CustomLevelManager;

private var custom_level:LevelConfig[];
private var lvl_count:int;
private var playing_custom_level:boolean;

static function Instance() : CustomLevelManager {
	return instance;
}

function Start () {
	if (instance == null) instance = this;
	GameObject.DontDestroyOnLoad(gameObject);
}

function Update () {

}

function GetCustomLevel() : LevelConfig[]{
	return custom_level;
}

function SetCustomLevel(lvl:LevelConfig[]) {
	custom_level = lvl;
}

function SetPlayingCustom(val:boolean) {
	playing_custom_level = val;
}

function IsPlayingCustom() :boolean {
	return playing_custom_level;
}